home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
EDITORS
/
ZAP
/
!Zap
/
!Run
< prev
next >
Wrap
Text File
|
1996-11-06
|
2KB
|
51 lines
|
| !Run file for Zap
| (c) D.H.Symes 1991-1996
|
| Set up directory paths and load sprites
Set Zap$Dir <Obey$Dir>
Set Zap$3rdParty <Zap$Dir>.3rdParty
Set ZapFonts$Path <Zap$Dir>.Fonts.
Iconsprites <Zap$Dir>.!Sprites
| Find operating system version
SetEval Zap$OSVsn 350
RMEnsure UtilityModule 3.50 SetEval Zap$OSVsn 300
RMEnsure UtilityModule 3.10 SetEval Zap$OSVsn 200
| To turn off dynamic areas uncomment the following line
| SetEval Zap$OSVsn 300
| Claim file types and taskwindows
Set Alias$@RunType_FFF Run <Zap$Dir>.!Run %%*0
Set Alias$Taskwindow "Basic -quit <Zap$Dir>.Code.Taskwindow "
Set OLEServer$Type_fff -N Zap -R /<Zap$Dir>
| Check Zap isn't already running
Set Zap$Temp "loaded"
RMEnsure Zap 0.01 SET Zap$Temp "notloaded"
IF Zap$Temp="loaded" AND Zap$OSVsn=200 THEN ERROR 0 Zap is already loaded
IF Zap$Temp="loaded" THEN %Basic -quit <Zap$Dir>.Code.Check
| The following lines are maintained by the ZapSetup application. Altering
| them directly may confuse it!
| ZapSetup config start
| Default options
Set Zap$Templates <Zap$Dir>.Templates.Ebourne
Set Zap$Menus <Zap$Dir>.Menus
Set Zap$Keys <Zap$Dir>.Keys
Set Zap$Options <Zap$Dir>.!Config
Set Zap$External <Zap$Dir>.External
| ZapSetup config end
| Force template file to Symes if on Risc OS 2
IF Zap$OSVsn<300 THEN Set Zap$Templates <Zap$Dir>.Templates.Symes
| Load modules and start Zap task (possibly loading a file).
| Do NOT load extension modules here, see the External file.
RMEnsure ColourTrans 0.51 RMLoad System:Modules.Colours
RMEnsure ZapRedraw 0.30 RMLoad <Zap$Dir>.Code.ZapRedraw
RMEnsure HidePointer 0.15 RMLoad <Zap$Dir>.Code.HidePtr
RMLoad <Zap$Dir>.Code.Zap
Zap_Desktop %0